package com.homework.ch06;

public class Test12 {
    public static void main(String[] args) {
        Vehicle car = new Vehicle("汽车");
        /*Person zhangSan = new Person("张三");*/
        Person zhangSan=new Person("张三",car);


        /*zhangSan.driveToCompany(car);*/
        zhangSan.driveToCompany();
    }
}
